﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Bussiness.Manager;

public partial class home_Control_about : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            LoadData();
    }

    private void LoadData()
    {
        DataTable tab = CmsNewsManager.CreateInstant().GetIntro("vi-VN");
        if (tab != null && tab.Rows.Count > 0)
        {
            if (!string.IsNullOrEmpty(tab.Rows[0]["Photo"].ToString()))
                lbimg.Text = @"<div style='float: left; width: 140px; height: 140px;margin-right:10px;padding-top:10px;'>
                               <img src='" + tab.Rows[0]["Photo"].ToString() + @"' width='140px' height='140px' />
                               </div>";
            lbContent.Text = tab.Rows[0]["ContentBody_vn"].ToString();
           // lbTitle.Text = tab.Rows[0]["title_vn"].ToString();
        }
    }
}
